package com.cloud.sms.api.manager;

import com.cloud.commons.Result;
import com.cloud.sms.api.req.SmsDefenseCoreVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author tc
 * @version 1.0
 * @ClassName: SmsManager
 * @date 2020年1月5日 下午3:02:05
 */
@FeignClient(value = "pet-sms-api", path = "/", url = "${spring.feign.sms:}")
public interface SmsManager {

    /**
     * @param smsDefenseCoreVo
     * @return
     * @Title: sendMessage
     * @Description: 发送短信
     * @author tc
     * @date 2020年1月5日 下午3:02:05
     */
    @RequestMapping(value = "v1/sms/sendMessage", method = RequestMethod.POST)
    @ApiOperation(value = "发送短信")
    Result sendMessage(@RequestBody SmsDefenseCoreVo smsDefenseCoreVo);
}
